﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Propro.Models
{
    public class MemberComparator : IEqualityComparer<UserProfile>
    {
        public bool Equals(UserProfile x, UserProfile y)
        {
            return x.UserName == y.UserName && x.UserId == y.UserId;
        }


        public int GetHashCode(UserProfile obj)
        {
            return obj.UserId;
        }
    }
}